namespace RuoVea.WeighIns.Server.Dto;

/// <summary>
/// 身体指标统计
/// </summary>
public class MetricStat
{
    /// <summary>
    /// 指标类型
    /// </summary>
    public string MetricType { get; set; } = string.Empty;

    /// <summary>
    /// 当前值
    /// </summary>
    public double CurrentValue { get; set; }

    /// <summary>
    /// 当前值时间
    /// </summary>
    public DateTime? CurrentValueTime { get; set; }

    /// <summary>
    /// 最大值
    /// </summary>
    public double MaxValue { get; set; }

    /// <summary>
    /// 最小值
    /// </summary>
    public double MinValue { get; set; }

    /// <summary>
    /// 平均值
    /// </summary>
    public double AverageValue { get; set; }

    /// <summary>
    /// 记录总数
    /// </summary>
    public int TotalRecords { get; set; }

    /// <summary>
    /// 趋势数据
    /// </summary>
    public List<MetricTrendPoint>? TrendData { get; set; }
}